package xyhoo.springframework.beans.factory.support;


import xyhoo.springframework.beans.factory.BeanDefinitionStoreException;
import xyhoo.springframework.core.io.Resource;
import xyhoo.springframework.core.io.ResourceLoader;

public interface BeanDefinitionReader {

    /**
     * 从指定资源中加载bean definition
     *
     * @param resource 资源描述符
     * @return
     * @throws BeanDefinitionStoreException
     */
    int loadBeanDefinitions(Resource resource) throws BeanDefinitionStoreException;

    ResourceLoader getResourceLoader();

    ClassLoader getBeanClassLoader();

    BeanDefinitionRegistry getRegistry();
}
